Initialize variables
authorMatthias Clasen <mclasen@redhat.com>
Sat, 24 Jan 2015 21:45:04 +0000 (16:45 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 24 Jan 2015 21:45:04 +0000 (16:45 -0500)
No need to risk valgrind complaints about initialized
values.

https://bugzilla.gnome.org/show_bug.cgi?id=743422

gdk/gdkwindow.c

index b791066761eb3effb5eda4f74bcab69f1c7fea74..6960cae38791ac416e18f70e16ef5a469e9c68c3 100644 (file)
@@ -4661,6 +4661,8 @@ gdk_window_get_device_position_double (GdkWindow       *window,
   g_return_val_if_fail (GDK_IS_DEVICE (device), NULL);
   g_return_val_if_fail (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD, NULL);
 
+  tmp_x = tmp_y = 0;
+  tmp_mask = 0;
   normal_child = GDK_WINDOW_IMPL_GET_CLASS (window->impl)->get_device_state (window,
                                                                              device,
                                                                              &tmp_x, &tmp_y,